package cn.leaf.uc.api.entity;

import cn.leaf.database.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
    * 组织机构表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@Builder
@TableName(value = "t_department")
public class DepartmentEntity extends BaseEntity implements Serializable {
    /**
     * 部门名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 删除标识
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    /**
     * 上级ID
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_SORT = "sort";

    public static final String COL_INSERT_USER = "insert_user";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_TENANT_ID = "tenant_id";
}